<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=*, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .container {
            height: 100px;
            margin: 0 auto;
        }

        @media screen and (max-width:767px) {
            .container {
                width: 100%;
                background-color: pink;
            }
        }
        @media screen and (min-width:768px) {
            .container {
                width: 750px;
                background-color: skyblue;
            }
        }
        @media screen and (min-width:992px) {
            .container {
                width: 970px;
                background-color: yellowgreen;
            }
        }
        @media screen and (min-width:1200px) {
            .container {
                width: 1170px;
                background-color: plum;
            }
        }
    </style>
</head>
<body>
    <div class="container">

    </div>
</body>
</html>